import type { TableColums, FormItemRows } from '@meetjs/element-plus-kit'

// 表格列配置
export const tableColumns: TableColums[] = [
	{
		prop: 'assessLevel',
		label: '评定级别',
		minWidth: 120,
		align: 'center'
	},
	{
		prop: 'assessMajor',
		label: '评定大项',
		minWidth: 120,
		align: 'center'
	},
	{
		prop: 'assessMinor',
		label: '评定小项',
		minWidth: 120,
		align: 'center'
	},
	{
		prop: 'auditTime',
		label: '审核时间',
		minWidth: 120,
		align: 'center'
	},
	{
		prop: 'remark',
		label: '备注',
		minWidth: 150,
		align: 'center'
	},
	{
		prop: 'action',
		label: '操作',
		minWidth: 160,
		fixed: 'right',
		align: 'center'
	}
]

// 表单配置
export const formOptions: FormItemRows[] = [
	{
		type: 'input',
		label: '评定级别',
		prop: 'assessLevel',
		required: true,
		attrs: {
			placeholder: '请输入评定级别',
			maxlength: 50
		}
	},
	{
		type: 'input',
		label: '评定大项',
		prop: 'assessMajor',
		required: true,
		attrs: {
			placeholder: '请输入评定大项',
			maxlength: 50
		}
	},
	{
		type: 'input',
		label: '评定小项',
		prop: 'assessMinor',
		required: true,
		attrs: {
			placeholder: '请输入评定小项',
			maxlength: 50
		}
	},
	{
		type: 'date-picker',
		label: '审核时间',
		prop: 'auditTime',
		required: true,
		attrs: {
			type: 'date',
			placeholder: '请选择审核时间',
			format: 'YYYY-MM-DD',
			'value-format': 'YYYY-MM-DD'
		}
	},
	{
		type: 'textarea',
		label: '备注',
		prop: 'remark',
		attrs: {
			placeholder: '请输入备注信息',
			rows: 3,
			maxlength: 500,
			'show-word-limit': true
		}
	}
]
